<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Login extends CI_Controller {

	public function index()
	{
		if($this->session->userdata('user')){
			$session_data = $this->session->userdata('user');
			$this->data['username'] = $session_data['username'];
			$this->data['nama'] = $session_data['nama'];
			redirect('user/home', 'refresh');
		}else{
			$data['url_login'] = 'user/verifysiswa';
			$this->load->view('v_login', $data);
		}
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */